﻿@model ProjectManagement.Models._Member
@using Projectmanagement.Entity
@using Projectmanagement.Utl
<fieldset style="width: 700px;">
    <legend>成员信息</legend>
    <table class="noline">
        <tr>
            <td>@Html.LabelFor(x => x.Name)
            </td>
            <td>
                @Html.DropDownListFor(x => x.Name, Model.GetEmployeeSelectListItems(), "请选择......", new { style = "width:165px;" })<br />
                @Html.ValidationMessageFor(x => x.Name)
            </td>
            <td>
               @Html.LabelFor(x => x.IsActivated)
            </td>
            <td>
                @Html.CheckBoxFor(x => x.IsActivated)
                @Html.ValidationMessageFor(x => x.IsActivated)
            </td>
        </tr>
        <tr>
            <td>
           
            @Html.LabelFor(x => x.RolePMID)
             </td>
            <td>
                @Html.DropDownListFor(m => m.RolePMID, new SelectList(CH.GetAllDatas<RolePM>().Where(w=>w.RoleLVL<=100), "ID", "Name"), "请选择...")
                @Html.ValidationMessageFor(x => x.RolePMID)
            </td>
        </tr>
        <tr>
            <td>@Html.LabelFor(x => x.Sequence)
            </td>
            <td>
                @Html.Telerik().IntegerTextBoxFor(model => model.Sequence).InputHtmlAttributes(new { style = "width: 165px" })<br />
                @Html.ValidationMessageFor(x => x.Sequence)
            </td>
            <td>@Html.LabelFor(x => x.Description)
            </td>
            <td>
                @Html.TextBoxFor(x => x.Description, new { style = "width:165px;" })<br />
                @Html.ValidationMessageFor(x => x.Description)
            </td>
        </tr>
        @Html.HiddenFor(x => x.ProjectID)
    </table>
</fieldset>
<style>
    .noline
    {
        width: 100%;
    }
    .noline, .noline tr, .noline td
    {
        border: 0;
        padding: 2px;
    }
</style>
